


import java.util.Arrays;

public class SumItUp
{
//		private static int[] aValue		= new int[]{1,2,3};
		private static int[] aValue1	= new int[]{4,5,6};
		private static int[] aValue  	= new int[]{7,8};

	public SumItUp(){}
	
	public static void main(String[] args) 
	{
		try {
			sumArray(aValue, aValue1);
		} catch (ArraySizeException e) {
			System.out.println("Array size is not equal");
		}
	}
	
	public static int[] sumArray(int[] array1, int[] array2) throws ArraySizeException
	{
		if (array1.length != array2.length) throw new ArraySizeException();
		int[] sum	=	new int[array1.length];
		
		for (int i=0; i<3; i++)
		{
			sum[i] = array1[i] + array2[i];
			System.out.print(sum[i]);
		}
		return sum;
	}
}